package com.srpingde.hhh.jiekou;

import android.content.Context;
import android.util.Log;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.srpingde.hhh.application.HHHDataManage;
import com.srpingde.hhh.bean.FenLei;
import com.srpingde.hhh.bean.FenLeiDetailBean;
import com.srpingde.hhh.bean.GouWuChe;
import com.srpingde.hhh.bean.GuangGao;
import com.srpingde.hhh.bean.MeiTuCollection;
import com.srpingde.hhh.bean.MeiWen;
import com.srpingde.hhh.bean.MeiWenBean;
import com.srpingde.hhh.bean.Pcollection;
import com.srpingde.hhh.bean.SearchBean;
import com.srpingde.hhh.bean.ShouHuoBean;
import com.srpingde.hhh.bean.TopBean;
import com.srpingde.hhh.bean.HHHMeiTu;
import com.srpingde.hhh.bean.HHHMeiTuListBean;
import com.srpingde.hhh.bean.XiangQing;
import com.srpingde.hhh.bean.YouXiBean;
import com.srpingde.hhh.http.AsyncHttpResponseHandler;
import com.srpingde.hhh.http.RequestParams;
import com.srpingde.hhh.http.HHHAsyncHttpClient;
import com.srpingde.hhh.http.HHHAsyncHttpResponseHandler;

public class HHHIml implements HHHInterface{
	HHHDataManage dataManage = HHHDataManage.getInstance();
	private HHHAsyncHttpClient client = new HHHAsyncHttpClient();
	@Override
	public void topGuangGao(Context context,final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		 client.get(context,GUANGGAO, null,
					new HHHAsyncHttpResponseHandler(context,GUANGGAO,false) {
				@Override
				public void onSuccess(String content) {
					super.onSuccess(content);
				}			
				@Override
				public void onFailure(Throwable error, String content) {
					super.onFailure(error,content);
				}
				@Override
				protected void parseContent(String content) {	
					Log.e("mytag", content);
					ObjectMapper mapper = new ObjectMapper();
					try {
						GuangGao guangGao = mapper.readValue(content, GuangGao.class);
						/*ArrayList<GuangGao> list = mapper.readValue(content,new TypeReference<ArrayList<GuangGao>>() {});
						dataManage.setGuangGaos(list);*/
						dataManage.setGuangGao(guangGao);
						handler.onSuccess(content);
					} catch (Exception e) {
						e.printStackTrace();
					}				
				}
				protected void parseOnFailure(){
					handler.onFailure(null, null);
				};
			});
	}
	@Override
	public void fenLei(Context context, String params,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(params, null,
				new HHHAsyncHttpResponseHandler(context,params,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	
	@Override
	public void fenLeiItem(Context context, String params,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(params, null,
				new HHHAsyncHttpResponseHandler(context,params,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					FenLei fenLei = mapper.readValue(content, FenLei.class);
					/*ArrayList<ListBean> list = mapper.readValue(content,new TypeReference<ArrayList<ListBean>>() {});
					dataManage.setListBeans(list);*/
					dataManage.setFenLei(fenLei);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void weiQuTianDi(Context context,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get("", null,
				new HHHAsyncHttpResponseHandler(context,"",false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					//ArrayList<KvBean> list = mapper.readValue(content,new TypeReference<ArrayList<KvBean>>() {});
					//daNingDataInstance.setKvBeans(list);
				//	handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void banBenGengXin(Context context,String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					//ArrayList<KvBean> list = mapper.readValue(content,new TypeReference<ArrayList<KvBean>>() {});
					//daNingDataInstance.setKvBeans(list);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void qieHuanZhangHao(Context context,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get("", null,
				new HHHAsyncHttpResponseHandler(context,"",false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					//ArrayList<KvBean> list = mapper.readValue(content,new TypeReference<ArrayList<KvBean>>() {});
					//daNingDataInstance.setKvBeans(list);
				//	handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void yiJianFanKui(Context context,String url, final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					//ArrayList<KvBean> list = mapper.readValue(content,new TypeReference<ArrayList<KvBean>>() {});
					//daNingDataInstance.setKvBeans(list);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void searchHttp(Context context, String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					SearchBean searchBean = mapper.readValue(content, SearchBean.class);
					dataManage.setSearchBean(searchBean);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void meiTuShangXiHttp(Context context,String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {	
				//Log.e("mytag", content+"美图赏析");
				ObjectMapper mapper = new ObjectMapper();
				try {
					/*WeiQuMeiTu meiTuBean = mapper.readValue(content, WeiQuMeiTu.class);
					dataManage.setQuMeiTu(meiTuBean);*/
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void collectionHttp(Context context, RequestParams params,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get("", null,
				new HHHAsyncHttpResponseHandler(context,"",false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					//ArrayList<KvBean> list = mapper.readValue(content,new TypeReference<ArrayList<KvBean>>() {});
					//daNingDataInstance.setKvBeans(list);
				//	handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void bottomGuangGao(Context context,final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(buttom, null,
				new HHHAsyncHttpResponseHandler(context,buttom,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					TopBean topBean = mapper.readValue(content, TopBean.class);
					dataManage.setTopBean(topBean);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void fenLeiItemXiangQing(Context context, String params,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,params, null,
				new HHHAsyncHttpResponseHandler(context,params,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					XiangQing xiangQing = mapper.readValue(content, XiangQing.class);
				//	ArrayList<XiangQing> list = mapper.readValue(content,new TypeReference<ArrayList<XiangQing>>() {});
					dataManage.setXiangQing(xiangQing);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void chanPinXiangQing(Context context, String params,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,params, null,
				new HHHAsyncHttpResponseHandler(context,params,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					/*ArrayList<GuangGao> list = mapper.readValue(content,new TypeReference<ArrayList<GuangGao>>() {});
					dataManage.setGuangGaos(list);
					handler.onSuccess(content);*/
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void loginHttp(Context context, String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void weiQuTianDiListHttp(Context context,String url, final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void getCollectionHttp(Context context,String url, RequestParams params,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					/*ArrayList<WeiQuFenLeiBean> list = mapper.readValue(content,new TypeReference<ArrayList<WeiQuFenLeiBean>>() {});
					dataManage.setWeiQuFenLeiBeans(list);
					handler.onSuccess(content);*/
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void getShangPinShouCangHttp(Context context, String url,
			 final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					Pcollection pcollection = mapper.readValue(content,Pcollection.class);
					dataManage.setPcollection(pcollection);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void getMeiTuShouCangHttp(Context context, String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
//					MeiTuCollection bean = mapper.readValue(content,MeiTuCollection.class);
//					dataManage.setMeiTuCollection(bean);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void getMeiWenShouCang(Context context, String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					MeiWen bean = mapper.readValue(content,MeiWen.class);
					dataManage.setMeiWen(bean);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void getHuoDaoFuKuanHttp(Context context, String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void getAboutHttp(Context context,final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,ABOUT, null,
				new HHHAsyncHttpResponseHandler(context,ABOUT,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void updateJifen(Context context, final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(UPDATE_JIFEN, null,
				new HHHAsyncHttpResponseHandler(context,UPDATE_JIFEN,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void xiaDingDan(String url ,Context context, final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void gouWuCheHttp(String url, Context context,final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					GouWuChe gouWuChe = mapper.readValue(content, GouWuChe.class);
					dataManage.setGouWuChe(gouWuChe);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void gouWuChedeleteHttp(String url, Context context,final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	
	@Override
	public void  gouWuCheAddHttp(Context context, String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	
	@Override
	public void gengGaiMiMa(String url, Context context,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void yiJianFanKui(String url, Context context,final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void weiQuTuPianList(String url, Context context,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					HHHMeiTuListBean gouWuChe = mapper.readValue(content, HHHMeiTuListBean.class);
					dataManage.setWeiQuMeiTuListBean(gouWuChe);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void fenLeiList(String url, Context context,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					FenLeiDetailBean gouWuChe = mapper.readValue(content, FenLeiDetailBean.class);
					dataManage.setFenLeiDetailBean(gouWuChe);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void shouHuoList(String url, Context context,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					ShouHuoBean gouWuChe = mapper.readValue(content, ShouHuoBean.class);
					dataManage.setShouHuoBean(gouWuChe);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
	@Override
	public void weiQuTianYOUxIDiListHttp(Context context, String url,
			final AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		client.get(context,url, null,
				new HHHAsyncHttpResponseHandler(context,url,false) {
			@Override
			public void onSuccess(String content) {
				super.onSuccess(content);
			}			
			@Override
			public void onFailure(Throwable error, String content) {
				super.onFailure(error,content);
			}
			@Override
			protected void parseContent(String content) {				
				ObjectMapper mapper = new ObjectMapper();
				try {
					YouXiBean meiWenBean = mapper.readValue(content,YouXiBean.class);
					dataManage.setYouXiBean(meiWenBean);
					handler.onSuccess(content);
				} catch (Exception e) {
					e.printStackTrace();
				}				
			}
			protected void parseOnFailure(){
				handler.onFailure(null, null);
			};
		});
	}
}
